package com.ruoyi.equ.service.impl;


import com.ruoyi.equ.domain.EquReturn;
import com.ruoyi.equ.mapper.EquReturnMapper;
import com.ruoyi.equ.service.IEquReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备归还Service业务层处理
 * 
 * @author luguanqing
 * @date 2020-10-23
 */
@Service
public class EquReturnServiceImpl implements IEquReturnService
{
    @Autowired(required = false)
    private EquReturnMapper equReturnMapper;

    /**
     * 查询设备归还
     * 
     * @param id 设备归还ID
     * @return 设备归还
     */
    @Override
    public EquReturn selectEquReturnById(String id)
    {
        return equReturnMapper.selectEquReturnById(id);
    }

    /**
     * 查询设备归还列表
     * 
     * @param equReturn 设备归还
     * @return 设备归还
     */
    @Override
    public List<EquReturn> selectEquReturnList(EquReturn equReturn)
    {
        return equReturnMapper.selectEquReturnList(equReturn);
    }

    /**
     * 新增设备归还
     * 
     * @param equReturn 设备归还
     * @return 结果
     */
    @Override
    public int insertEquReturn(EquReturn equReturn)
    {
        return equReturnMapper.insertEquReturn(equReturn);
    }


    /**
     * 批量新增
     * @param equReturns
     * @return
     */
    @Override
    public int insertEquRes(List<EquReturn> equReturns) {
        return equReturnMapper.insertEquRes(equReturns);
    }

    /**
     * 修改设备归还
     * 
     * @param equReturn 设备归还
     * @return 结果
     */
    @Override
    public int updateEquReturn(EquReturn equReturn)
    {
        return equReturnMapper.updateEquReturn(equReturn);
    }

    /**
     * 批量删除设备归还
     * 
     * @param ids 需要删除的设备归还ID
     * @return 结果
     */
    @Override
    public int deleteEquReturnByIds(String[] ids)
    {
        return equReturnMapper.deleteEquReturnByIds(ids);
    }

    /**
     * 删除设备归还信息
     * 
     * @param id 设备归还ID
     * @return 结果
     */
    @Override
    public int deleteEquReturnById(String id)
    {
        return equReturnMapper.deleteEquReturnById(id);
    }
}
